﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Mobile.Models.ProductModels>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<div class="top_tinrao">
    <div class="tit_bg">
        <span class="tit_name">
            <a href="/bat-dong-san-ban/p/1"><%=ViewData["Title"] %></a>
        </span>
    </div>
</div>
<div class="pro_list">
    <ul>
    	<%foreach (var item in Model.Products)
       {
           var pathDetail = item.ProductCategory.Name + " tại " + item.District.Name + " " + item.City.Name;
           var dpath = "/" + Html.ToUrlFriendly(pathDetail) + "/" + Html.ToUrlFriendly(item.Title) + "-p-" + item.ID + ".html";
           %>
    	<li>        	
            <a href="<%=dpath %>" class="l_blue">
                <%=Html.Encode(item.Title) %>
            </a>
        </li>
        <%} %>        
        <li style="text-align:right"><a href="/bat-dong-san-ban/p/1">Xem tiếp&raquo;</a></li>
    </ul>
</div>
